//
//  SEOrderExamineDetailPatientCell.swift
//  SmartEyeForPatient
//
//  Created by QDSG on 2021/4/17.
//

import UIKit

class SEOrderExamineDetailPatientCell: UITableViewCell {

    override func awakeFromNib() {
        super.awakeFromNib()
        backgroundColor = .white
        contentView.backgroundColor = .white
    }

    func update(with viewModel: SEExamineDetailViewModel) {
        nameLabel.text = viewModel.patientNameDescribe
        sexLabel.text = viewModel.patientSexDescribe
        ageLabel.text = viewModel.patientAgeDescribe
    }
    
    @IBOutlet private weak var containerView: UIView! {
        didSet {
            containerView.layer.cornerRadius = 4
            containerView.layer.borderWidth = 1
            containerView.layer.borderColor = Asset.main.color.withAlphaComponent(0.15).cgColor
        }
    }
    
    @IBOutlet private weak var nameLabel: UILabel!
    @IBOutlet private weak var sexLabel: UILabel!
    @IBOutlet private weak var ageLabel: UILabel!
    
}
